package co.yixiang.modules.order.cart.entity.vo;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class CartFormVo {

    @NotNull(message = "产品id不能为空")
   private String skuId;
    @NotNull(message = "购买数量不能为空") @Min(value = 1, message = "加入购物车数量必须大于0")
    private Integer num;
    private String cartType;
    private Boolean checked = false;
    private String[] goodIds;
}
